public class Dog {
    int age;
    String name;

    public void bark() {
        if(age<2) {
            System.out.println(name+":叽叽叽");
        } else if(age<12) {
            System.out.println(name+":旺旺旺!");
        } else {
            System.out.println(name+":呜呜呜!");
        }

    }
}
